<%@page import="bean.MemberVo"%>
<%@page import="bean.MemberDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>modify</title>
<jsp:useBean id="vo" class="bean.MemberVo"></jsp:useBean>
<jsp:setProperty property="*" name="vo"/>
<%
MemberDTO dto = new MemberDTO();
dto.setVo(vo);
MemberVo v=dto.selectone();
%>


<link rel="stylesheet" href="./css/member.css">
<script src="./js/member.js"></script>

</head>
<body>
<h1>수정창</h1>
<form method="post" action="index.jsp?inc=./member/modify_result.jsp" name="frm">
	<label>사진<input type="text" name="pphoto" value="<%=v.getPhoto()%>"></label><br><br>
	<label>사진<input type="file" name="photo" value="<%=v.getPhoto()%>"></label><br><br>
	<label>아이디<input type="text" name="mid" size="10" maxlength="20" value="<%=v.getMid()%>"></label><br><br>
	<label>닉네임<input type="text" name="nickname" size="10" maxlength="20" value="<%=v.getNickname()%>"></label><br><br>
	<label>원조비밀번호<input type="text" name="ppwd" size="10" maxlength="20" value="<%=v.getPwd()%>"></label><br><br>
	<label>비밀번호<input type="password" name="pwd" size="10" maxlength="20" value="<%=v.getPwd()%>"></label><br><br>
	<label>이름<input type="text" name="irum" size="10" value="<%=v.getIrum()%>"></label><br><br>
	<label>생일<input type="date" name="birth" min="1900-01-01" max="2015-01-01" value="<%=v.getBirth()%>"></label><br><br>
	성별
<%
if(v.getGender().equals("m"))
{
	System.out.println("남자");
%>
	<label>남자<input type="radio" name="gender" [checked] value="남자"></label>
    <label>여자<input type="radio" name="gender" value="여자"></label><br><br>
<%
}
else
{
	System.out.println("여자");
%>
	<label>남자<input type="radio" name="gender" value="남자"></label>
    <label>여자<input type="radio" name="gender" [checked] value="여자"></label><br><br>
<%
}
%>
    <label>이메일<input type="text" name="email" size="10" value="<%=v.getEmail()%>"></label><br><br>
	<label>연락처<input type="text" name="phone" size="10" value="<%=v.getPhone()%>"></label><br><br>
	<input type="button" value="저장" id="btnsave">
	<input type="button" value="회원입력" id="btninput">
	<input type="button" value="보기" id="btnview">
	<input type="button" value="목록으로" id="btnlist">
</form>


<script>modiinit();</script>
</body>
</html>